package com.itany.cms.service;

import com.github.pagehelper.PageInfo;
import com.itany.cms.entity.Chapter;
import com.itany.cms.entity.Comment;
import com.itany.cms.entity.Course;
import com.itany.cms.exception.CourseExistException;
import com.itany.cms.exception.FileUploadErrorException;
import com.itany.cms.exception.RequestParameterErrorException;
import org.springframework.web.multipart.MultipartFile;

public interface ChapterService {
    PageInfo<Chapter> findByParams(Chapter chapterParam, String pageNo, String pageSize);
    PageInfo<Chapter> findChapter(Chapter chapterParam, String pageNo, String pageSize);
    PageInfo<Comment> findComment(String id, String pageNo, String pageSize);
    void modifyStatus(String id,String status) throws RequestParameterErrorException;
    void addChapter(String courseId, String title, String info,MultipartFile file, String resourceTitle, String costType,String costNumber, String fileType) throws RequestParameterErrorException, FileUploadErrorException;
    void modifyChapter(String id, String name, String author, MultipartFile file,String recommendationGrade,String courseTypeId);
}
